net/netip.Prefix.ip (field)
21 uses
net/netip (current package)
netip.go#L1288: ip Addr
netip.go#L1309: ip: ip.withoutZone(),
netip.go#L1315: func (p Prefix) Addr() Addr { return p.ip }
netip.go#L1330: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1418: m, _ := p.ip.Prefix(p.Bits())
netip.go#L1433: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
netip.go#L1445: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1450: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
netip.go#L1466: if p.ip.Is4() != o.ip.Is4() {
netip.go#L1483: if p, err = p.ip.Prefix(minBits); err != nil {
netip.go#L1486: if o, err = o.ip.Prefix(minBits); err != nil {
netip.go#L1489: return p.ip == o.ip
netip.go#L1504: if p.ip.z == z4 {
netip.go#L1505: b = p.ip.appendTo4(b)
netip.go#L1507: if p.ip.Is4In6() {
netip.go#L1509: b = p.ip.Unmap().appendTo4(b)
netip.go#L1511: b = p.ip.appendTo6(b)
netip.go#L1531: switch p.ip.z {
netip.go#L1595: return p.ip.String() + "/" + strconv.Itoa(p.Bits())
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |